﻿using BCCommon.PaymentEnums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace BCDto.Common.Payment.Payment
{
    /// <summary>
    /// 授权登录信息
    /// </summary>
    public class AuthLoginInfoRequestDto
    {
        /// <summary>
        /// 支付渠道类型。
        /// </summary>
        [Display(Name = "支付渠道类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public PaymentChannelType ChannelType { get; set; }

        /// <summary>
        /// 操作系统。
        /// </summary>
        [Display(Name = "操作系统")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public SourceOSType OSType { get; set; }

        /// <summary>
        /// 设备类型。
        /// </summary>
        [Display(Name = "设备类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public SourceDeviceType DeviceType { get; set; }

        /// <summary>
        /// 设备编号。
        /// </summary>
        [Display(Name = "设备编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string DeviceId { get; set; }

        /// <summary>
        /// 参数。
        /// </summary>
        [Display(Name = "参数")]
        public Dictionary<string, string> Parameters { get; set; }
    }
}
